﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Night715.Domain
{
    /// <summary>
    /// 性别枚举
    /// </summary>
    public enum Gender 
    {
    男=1,
    女=3
    }
    /// <summary>
    /// 枚举的定义
    /// </summary>
    public enum UserStatus
    { 
    禁用,
    启用,
    已删除}
    public class User
    {
        [Key]
        public int UId { get; set; }
        [StringLength(20)]
        [Required]
        public string UserName { get; set; }
    }
}
